package monitoring;

import domain.Census2010;
import httpbot.Page;

public class GeographyMatcher implements IMatcher {
	
	private Census2010 data;
	
	public GeographyMatcher(Census2010 data){
		this.data = data;
	}

	@Override
	public boolean match(Page page) {
		String regex = "According to the \\[\\[United States Census Bureau\\]\\], the city has a total area of \\{\\{convert\\|" + "\\|sqmi\\|sqkm\\|2\\}\\}, all of it land\\.";
		if (page.getSource().split(regex).length == 2){
			return true;
		}
		return false;
	}

}
